package interfaces

import "gorm.io/gorm"

type ItfMigrate interface {
	Migrate() (int64, error)
}

type ItfGormDB interface {
	DB() *gorm.DB
}

type ItfSplitTableModel interface {
	TableName() string
	SplitTableName(key string) string
}

// ItfSubTableStrategy 分表策略
type ItfSubTableStrategy interface {
	SetSplitStrategyById(f1 func(int64) string)
	SetSplitStrategyByKey(f1 func(string) string)
}
